//
//  RefrashLoginRequest.m
//  TNS
//
//  Created by jadd on 16/2/1.
//  Copyright © 2016年 zhongyan. All rights reserved.
//

#import "RefrashLoginRequest.h"
@interface RefrashLoginRequest()
@property (nonatomic) NSString * username;
@property (nonatomic) NSString * password;
@end
@implementation RefrashLoginRequest
-(instancetype)initWithUserName:(NSString *)username password:(NSString *)password{
    self = [super init];
    if (self) {
        self.username = username;
        self.password = password;
    }
    return self;
    
}

- (NSString *)getRequestURL {
    NSString * baseUrl = [super getRequestURL];
    NSString *url = [NSString stringWithFormat:@"%@",baseUrl];
    //[self getVersionCode],
    //[self getMacAddress],
    //[self getPlatform]];
    
    return url;
}
- (RequestMethodType)getRequestMethod {
    return GetMethod;
}

- (id)getRequestParams {
    NSMutableDictionary * paramDict = [super getRequestParams];
    if (self.username) {
        [paramDict setObject:self.username forKeyedSubscript:@"username"];
    }
    if (self.password) {
        [paramDict setObject:self.password forKeyedSubscript:@"password"];
    }
    
    return paramDict;
}

@end
